package com.minelx.woods.task.core.sql.appender;

import com.minelx.woods.task.core.sql.SqlCollections;
import com.minelx.woods.task.core.values.FieldPathValues;

import java.util.function.Supplier;

public class CollectionPathAppender implements CollectionAppender {

	private final Supplier<FieldPathValues> valuesSupplier;

	private CollectionPathAppender(Supplier<FieldPathValues> valuesSupplier) {
		this.valuesSupplier = valuesSupplier;
	}

	@Override
	public void append(SqlCollections sqlCollections) {
		sqlCollections.addFieldPath(valuesSupplier.get());
	}

}
